import adminMain from '@/views/admin/main'
import adminUser from '@/views/admin/user'
import adminArticle from '@/views/admin/article'

export default [
  {
    path: '/admin',
    component: adminMain,
    beforeEnter: (to, from, next) => {
      console.log('admin - beforeEnter')
      next()
    },
    // 子路由
    children: [
      {
        // path:'/admin/user'
        path: 'user',
        component: adminUser
      },
      {
        path: 'article',
        component: adminArticle
      }
    ]
  }
]
